package com.onepiece.gen.common.util;

import com.onepiece.gen.common.exception.BusiException;

/**
 * @Author Administrator
 * Date 2022/12/7 15:30
 * Version 1.0
 * Description TODO
 **/
public class ExceptionUtils {

    public static void throwBusiException(String code , String message){
        throw new BusiException(code, message);
    }

    public static void throwBusiException(String message){
        throw new BusiException("-1", message);
    }
}
